package com.enation.app.javashop.api.client;


import com.enation.app.javashop.service.system.SensitiveWordsManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

/**
 * @author fk
 * @version v2.0
 * @Description: 敏感词client
 * @date 2019/9/29 9:47
 * @since v7.0.0
 */
@RestController
@RequestMapping("/client/system/sensitive-words")
@ApiIgnore
public class SensitiveWordsClientController {

    @Autowired
    private SensitiveWordsManager sensitiveWordsManager;

    @GetMapping
    List<String> listWords(){
        
        return sensitiveWordsManager.listWords();
    }

}
